package application;

import application.exceptions.ItemNotFoundException;
import dao.ChemicalCompositionDao;
import dao.MaterialsDefinitionDao;
import dao.ProducentCompositionDao;
import dao.ProducentsDao;
import mappings.*;
import utils.HibernateUtil;

import java.util.List;

public class Application
{
    public static void main(String[] args)
    {
        ProducentCompositionDao producentCompositionDao = new ProducentCompositionDao();

        try
        {
            producentCompositionDao.addProducentComposition(1, 1);
        } catch (ItemNotFoundException e)
        {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
    }
}
